<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('blog_actions', function (Blueprint $table) {
            $table->id()->comment('编号');
            $table->integer('user_id')->unsigned()->comment('发布者ID');
            $table->string('content')->comment('内容');
            $table->timestamps();
            $table->softDeletes();
            $table->comment('【博客】动态表');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('blog_actions');
    }
};
